<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/axios@1.1.2/dist/axios.min.js"></script>
</head>
<body>
<button></button>
<script>
    var button = document.querySelector('button');
    button.addEventListener('click', function () {
        axios({
            method: 'get',
            url: 'http://127.0.0.1:5050/server',
        })
            .then(function (response) {
                console.log(response);
            });
    })
</script>
</body>
</html>